﻿using AppUIView;
using Global;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppService
{
    [Injectable(typeof(IEmailService), LifeTime.Singleton)]
    public class EmailService : IEmailService
    {
        private readonly ILogger _logger;

        public EmailService(ILogger logger)
        {
            _logger = logger;
        }

        public void SendEmail(string to, string subject, string body)
        {
            _logger.Log($"触发了SendEmail.");
        }
    }
}
